// component 是相对于 src/pages 目录的

const routes = [
  {
    path: '/test',
    component: './test',
    title: '测试',
  },
  {
    path: '/',
    component: './login',
    title: '登录',
  },
  {
    path: '/',
    component: '../layouts',
    title: '后端平台',
    routes: [
      {
        path: '/home',
        title: '首页',
        component: './home',
      },
      {
        path: '/news',
        routes: [
          {
            path: '/news/about',
            title: '测试目录1',
            component: './about',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
];

export default routes;
